package org.xiaov.bean.result;

import org.xiaov.http.HttpCode;

import java.io.Serializable;

/**
 * <p>
 * 封装好的结果集
 * </p>
 *
 * @author xiaovcloud
 * @version：1.0
 * @since 2021/2/26 12:47
 */
@Deprecated
public final class ErrorApiResult extends ApiResult implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 错误信息
     */
    private String message;

    public String getMessage() {
        return message;
    }

    public ErrorApiResult(String message) {
        this(HttpCode.HTTP_INTERNAL_ERROR.getValue(), message);
    }

    public ErrorApiResult(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

}
